

<?php if (Yii::$app->user->isGuest): ?>
    <a href="/user/login" class="btn btn-success btn-sm">
        点赞
    </a>
<?php elseif ($result): ?>
    <button type="button"class="btn btn-warning btn-sm">
        已点赞
    </button>
<?php else: ?>
    <button type="button" id="add_recommend" data-loading-text="已点赞" class="btn btn-success btn-sm" autocomplete="off" aid="<?php echo $aid ?>">
        点赞
    </button>
<?php endif; ?>
